package com.oscroll.singleton.lesson;

public class Hungry {

    private Hungry(){

    }
    /**
     * final保证不能覆盖
     */
    private static final Hungry hungry = new Hungry();

    public static Hungry getInstance(){
        System.out.println(System.currentTimeMillis()+""+hungry);
        return hungry;
    }

}
